package com.jerry.common.bean;

import com.jerry.common.ResponseBean;

import java.util.List;

public class Order extends ResponseBean {

    private long id;
    private String number;
    private float totalPrice;
    private int status;
    private User user;
    private List<Product> productList;

    public long getId() {
        return id;
    }
    public void setId(long id) {
        this.id = id;
    }

    public String getNumber() {
        return number;
    }
    public void setNumber(String number) {
        this.number = number;
    }

    public float getTotalPrice() {
        return totalPrice;
    }
    public void setTotalPrice(float totalPrice) {
        this.totalPrice = totalPrice;
    }

    public int getStatus() {
        return status;
    }
    public void setStatus(int status) {
        this.status = status;
    }

    public User getUser() {
        return user;
    }
    public void setUser(User user) {
        this.user = user;
    }

    public List<Product> getProductList() {
        return productList;
    }
    public void setProductList(List<Product> productList) {
        this.productList = productList;
    }

    @Override
    public String toString() {
        return "Order{" +
                "id=" + id +
                ", number='" + number + '\'' +
                ", totalPrice=" + totalPrice +
                ", status=" + status +
                ", user=" + user +
                ", productList=" + productList +
                ", host='" + host + '\'' +
                ", port=" + port +
                ", serverId='" + serverId + '\'' +
                '}';
    }
}
